import { NgModule } from '@angular/core';
import { StoreModule } from '@ngrx/store';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
import { environment } from '../../../../environments/environment';
import { modalBoxReducer } from './modal-box.reducer';



@NgModule({
    declarations: [],
    imports: [
        StoreModule.forRoot({ modalBox: modalBoxReducer }, {
            runtimeChecks: {
                strictStateImmutability: true,
                strictActionImmutability: true,
                strictStateSerializability: true,
                strictActionSerializability: true,
            }
        }),
        StoreDevtoolsModule.instrument({
            maxAge: 20,
            logOnly: environment.production
        })
    ]
})
export class AppStoreModule { }
